﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Management;

namespace HAZ.ConnectionFactory
{
    public class DBFactory
    {
        public static IDBConnector GetConnection(int getdb)
        { return GetConnection((DBSuported)getdb); }
        public static IDBConnector GetConnection(DBSuported getdb)
        {
            DBConnection dbconn   = new DBConnection();
            IDBConnector conector = null;

            switch (getdb)
            {
                case DBSuported.ODBC:
                    conector = null;
                    break;
                case DBSuported.OracleClient:
                    conector = null;
                    break;
                case DBSuported.SqlClient:
                    conector = new DBConnectorMSSQL(dbconn.connectionString);
                    break;
                case DBSuported.SqlServerCE:
                    conector = null;
                    break;
            }

            return conector;
        }
    }
}